package com.axjy.dao;

import com.axjy.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by l on 2017/12/30.
 */
public interface UserMapper {

    public List<User> search(@Param("userRole") Integer userRole);

    public Integer addUser(User user);

    public User find(@Param("userCode") String userCode,@Param("userPassword") String userPassword);

    public Integer updateCard(User user);

    public Integer checkCode(String userCode);

    public User get(Integer id);

}
